package com.xjrsoft.module.visual.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xjrsoft.common.page.PageOutput;
import com.xjrsoft.module.base.dto.GetPageListDto;
import com.xjrsoft.module.visual.entity.XjrVisualReleaseRelation;
import com.xjrsoft.module.visual.vo.VisualReleaseHomeVo;

import java.util.List;

/**
 * <p>
 * BI发布权限表 服务类
 * </p>
 *
 * @author jobob
 * @since 2021-03-15
 */
public interface IXjrVisualReleaseRelationService extends IService<XjrVisualReleaseRelation> {

    /**
     *
     * @param objectId 对象id
     * @param category 对象类型，1-角色，2-用户
     * @return
     */
    List<VisualReleaseHomeVo> getVisualOfRelationObject(String objectId, Integer category);


    PageOutput<VisualReleaseHomeVo> getRelationVisualOfUser(String userId, List<String> roleIds, GetPageListDto dto);

}
